package com.dhcc.bpm.modules.workflow.dto;

/**
 * @ClassName PageParameter
 * @Description 分页参数
 * @Author xiafayu
 * @Date 2020/2/21 0021 15:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 **/
public class PageParameter {

    /**
     * 分页数据大小
     */
    private int pageSize = 10;
    /**
     * 当前页
     */
    private int pageNo = 1;

    public int getPageSize() {
        return pageSize;
    }

    public void setPageSize(int pageSize) {
        this.pageSize = pageSize;
    }

    public int getPageNo() {
        return pageNo;
    }

    public void setPageNo(int pageNo) {
        this.pageNo = pageNo;
    }


    public int firstResult() {
        return (pageNo - 1)*pageSize;
    }
    public int maxResult() {
        return pageNo*pageSize;
    }
}
